const mongoose = require('mongoose');
var Schema = mongoose.Schema;

var customerSchema=new Schema({
    cName:String,
    cpwd:String,
    phone:[{
        name:String
    }],
    address:[{
        name:String
    }],
    order:[{type:Schema.Types.ObjectId,ref:'Order'}]

});

mongoose.model('Customer',customerSchema);